package com.yonyou.pmclouds.safetyrectification.rectificationrecord.entity;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import com.yonyou.pmclouds.safetyrectification.acceptrecord.entity.AcceptRecordVO;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * 安全整改-整改记录类
 *
 * @author tanghuan
 * @date 2019/10/24
 */
@Data
@Table(name = "pm_safety_rectification_record")
public class RectificationRecordVO extends SuperVO {
    public static final String STATUS = "status";

    @Id
    private String pkRectificationRecord;
    /**
     * 整改内容
     */
    private String content;
    /**
     * 整改状态（3：初始态，4：验收通过，5：验收不通过）
     */
    private byte status;
    /**
     * 安全整改主键
     */
    private String pkSafetyRectification;
    private String pkProject;
    private String creator;
    private Date creationtime;
    private String modifier;
    private Date modifytime;

    /**
     * 验收记录
     */
    @Transient
    private AcceptRecordVO acceptRecordVO;
    @Transient
    private String[] pictures;
    @Transient
    private String pictureAddress; // 照片真实地址(用于存储HTML形式)
    @Transient
    private String strRectificationTime;
    /**
     * 安全整改制单人
     */
    @Transient
    private String safetyRectifyCreator;
    @Transient
    private String safetyRectifyCreatorName;
    /**
     * 验收意见，打印用
     */
    @Transient
    private String acceptOpinion;

}
